//
//  SourceCell.m
//  yameishe3
//
//  Created by pro on 2017/3/8.
//  Copyright © 2017年 yameishe. All rights reserved.
//

#import "SourceCell.h"

@interface SourceCell ()
{
    __weak IBOutlet UILabel *nameLab;
    __weak IBOutlet UILabel *styleLab;
    __weak IBOutlet UILabel *levelLab;
    __weak IBOutlet UILabel *linkLab;
    __weak IBOutlet UILabel *delePriceLab;
    __weak IBOutlet UILabel *memberPriceLab;
    __weak IBOutlet UILabel *platformPriceLab;
    
    __weak IBOutlet UIImageView *iconImgView;
    __weak IBOutlet UIButton *showBigPicBtn;//点击查看入口示意图
}
@end
@implementation SourceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setSource:(YMSMediaSource *)source
{
    _source = source;
    nameLab.text = source.media_name;
    styleLab.text = source.Entrance_form;
    levelLab.text = source.Entrance_level;
    linkLab.text = source.standard;
    memberPriceLab.text = [NSString stringWithFormat:@"¥%.2f",[source.mb_price floatValue]];
    delePriceLab.text = [NSString stringWithFormat:@"¥%.2f",[source.px_price floatValue]];
    platformPriceLab.text = [NSString stringWithFormat:@"¥%.2f",[source.pf_price floatValue]];
    [iconImgView downloadProductImageUrl:source.diagram_img];
}
@end
